<?php
class SubscribeToUs extends CWidget
{
	public $postParams=array();
	public $config=array();
	
	public function run()
  	{?>

<!--Subscribe to us jquery starts here-->
<div id="fixedbox">
    <div class="slide-out-div">
    
<a href="#" class="subscribe_btn" style="margin-top: -79px;"></a>
<div>
   			<?php 
    		  $sub = new YcSubscription;
    		  $form=$this->beginWidget('CActiveForm', array(
			  'id'=>'subscribe-us',
			  'action'=>ApplicationConfig::getURL('','site','subscription'),
		)); ?>
<div class="row"><?php echo $form->textField($sub,'emailID',array("onclick"=>"if(this.value=='Email Address'){this.value=''}", "onblur"=>"if(this.value==''){this.value='Email Address'}", "class"=>"keyword fnt15 pl10","value"=>"Email Address"));?><?php echo $form->error($sub,'emailID'); ?></div> 
<br/>
<div class="row"><?php echo $form->dropDownlist($sub,'ycs_cityID',CHtml::listData(City::model()->findAll(),'cityID','city_name'),array('empty'=>'Select City'));?><?php echo $form->error($sub,'ycs_cityID'); ?></div>
<br/>	
<?php echo CHtml::ajaxButton('submit',ApplicationConfig::getURL('', 'site', 'subscription'),array('success'=>'js: function(data) {
                        alert(data);
                       
                    }'),array('id'=>'closeJobDialog',"class"=>"fl ml30 login_btn",
							)); ?>

		<?php $this->endWidget(); ?>
</div>
    </div>
    </div>
<!--Java Scripts-->



<!--Library Jqueries-->
<script src="<?php echo ApplicationConfig::app()->params['theme']['jsUrl']?>jquery.easing.1.3.min.js" type="text/javascript"></script>
<script src="<?php echo ApplicationConfig::app()->params['theme']['jsUrl']?>slider.js" type="text/javascript"></script><!--Royal slider file name changed dont include original file name here-->
<script src="<?php echo ApplicationConfig::app()->params['theme']['jsUrl']?>organictabs.jquery.js" type="text/javascript"></script>
<script src="<?php echo ApplicationConfig::app()->params['theme']['jsUrl']?>jquery.selectbox-0.1.3.min.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo ApplicationConfig::app()->params['theme']['jsUrl']?>jquery.mousewheel.js"></script>
<script type="text/javascript" src="<?php echo ApplicationConfig::app()->params['theme']['jsUrl']?>jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="<?php echo ApplicationConfig::app()->params['theme']['jsUrl']?>jquery.jqtransform.js"></script>
<!--Library Jqueries-->

<script src="<?php echo ApplicationConfig::app()->params['theme']['jsUrl']?>common.js" type="text/javascript"></script>
<!--Java Scripts-->	
<!--Subscribe to us jquery ends here-->

  	<?php }
}
?> 